<script type="text/javascript">
$(document).ready(function () {
	$('img[name=print]').click(function(){
		printDiv('printableArea');
	});
});

</script>

<img src="view/templates/temp1/images/print_button.png" width="109" name="print"/>

<div class="mws-panel grid_8" >
                	<div class="mws-panel-header">
                    	<span class="mws-i-24 i-list">Schedule Detail</span>
                    </div>
                    <div class="mws-panel-body" style="overflow:scroll !important;" id="printableArea">
                    	<form class="mws-form" method="POST" action="index.php?type=schedule&action=completeSchedule&scheduleID={$schedule->getScheduleDomain()->getScheduleID()}">
                    		<table class="mws-table">
	                            <thead>
	                                <tr>
	                                	<th>D/O or W/O Number</th>                          
	                                    <th>PIC</th>
	                                    <th>Client's Co, Name, Contact & Venue/Location</th>
	                                    <th>Delivery Date</th>
	                                    <th>Delivery Time</th>
	                                    <th>Collection Date</th>
	                                    <th>Collection Time</th>
	                                    <th>Transport/ Driver</th>
	                                    <th>Job Description / Instructions / Collection</th>
	                                    
	                                </tr>
	                            </thead>
	                            <tbody>
	                            
	                                <tr class="gradeX">
	                                	<td>{$schedule->getMemberDomain()->getDwo()}</td>
	                                    <td>{$schedule->getMemberDomain()->getPIC()}</td>
	                                    <td>{$schedule->getMemberDomain()->getClientCompany()} <br />
	                                     	{$schedule->getMemberDomain()->getClientName()} <br />
	                                      	{$schedule->getMemberDomain()->getClientContact()} {$schedule->getMemberDomain()->getLocation()}
	                                    </td>
	                                    
	                                    <td class="center">{$tool-> ddMMyyyy({$schedule->getScheduleDomain()->getDeliveryDate()})}</td>
	                                    <td class="center">{if $schedule->getScheduleDomain()->getDeliveryTime() ne '00:00:00'} {$tool->convert24hTo12h($schedule->getScheduleDomain()->getDeliveryTime())}{/if}</td>
	                                    
	                                    <td class="center">{$tool-> ddMMyyyy({$schedule->getScheduleDomain()->getCollectionDate()})}</td>
	                                    <td class="center">{if $schedule->getScheduleDomain()->getCollectionTime() ne '00:00:00'}{$tool->convert24hTo12h($schedule->getScheduleDomain()->getCollectionTime())}{/if}</td>
	                                    
	                                    <td class="center">{$schedule->getScheduleDomain()->getTransportDriver()}</td>
	                                    <td class="center">{$schedule->getScheduleDomain()->getJobDescription()}</td>
	                                </tr>	                                                   
	                            	<tr class="fake" >
	                                	<td>D/O or W/O Number</td>                          
	                                    <td>PIC</td>
	                                    <td>Client's Co, Name, Contact & Venue/Location</td>
	                                    <td>Delivery Date</td>
	                                    <td>Delivery Time</td>
	                                    <td>Collection Date</td>
	                                    <td>Collection Time</td>
	                                    <td>Transport/ Driver</td>
	                                    <td>Job Description / Instructions / Collection</td>
	                                    
	                                </tr>
	                                <tr class="gradeX">
	                                	<td>{$schedule->getMemberDomain()->getDwo()}</td>
	                                    <td>{$schedule->getMemberDomain()->getPIC()}</td>
	                                    <td>{$schedule->getMemberDomain()->getClientCompany()} <br />
	                                     	{$schedule->getMemberDomain()->getClientName()} <br />
	                                      	{$schedule->getMemberDomain()->getClientContact()} {$schedule->getMemberDomain()->getLocation()}
	                                    </td>
	                                    
	                                    <td class="center"></td>
	                                    <td class="center"></td>
	                                    
	                                    <td class="center"><input type="text" class="mws-textinput mws-datepicker" name="collectionDateLive" readonly="readonly" value="{$tool-> ddMMyyyy({$schedule->getScheduleDomain()->getCollectionDate()})}"/></td>
	                                    <td class="center"><input class="mws-textinput" type="text" id="timepicker2" readonly="readonly" name="collectionTimeLive" value="{if $schedule->getScheduleDomain()->getCollectionTime() ne '00:00:00'}{$tool->convert24hTo12h($schedule->getScheduleDomain()->getCollectionTime())}{/if}" /></td>
	                                    
	                                    <td class="center"><input type="text" class="mws-textinput" name="transportDriverLive" /></td>
	                                    <td class="center"><textarea  name="jobDescriptionLive" ></textarea></td>
	                                </tr>
	                                                   
	                            </tbody>
	                        </table>
                    		
                    		<div class="mws-button-row">
                    			<input type="submit" value="Complete Schedule" class="mws-button green" />
                    		</div>
                    	</form>
                    </div>    	
                </div>
                
            